<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j"
         xmlns:core="http://www.contact.core.com/contacts/core/ui">

<ui:component>

    <!--@elvariable id="request" type="rs.contacts.core.core.searcher.entity.FriendResult"-->

    <rich:panel style="overflow:auto;border:none" bodyClass="rich-laguna-panel-no-header">
        <a4j:outputPanel layout="block">
            <a4j:outputPanel layout="block" style="float:left;">
                <!--<h:graphicImage value="./style/images/noImage.PNG" style="resize:both; width: 100px;"/>-->
                 <core:pictureForView style="resize:both; width: 100px;" pictureKey="photoprofile_#{request.id}"/>
            </a4j:outputPanel>
            <a4j:outputPanel layout="block" style="float:left;">
                <a4j:outputPanel layout="block" style="float:left;">
                    <h:outputLabel value="#{request.firstName} #{request.lastName}"/>
                </a4j:outputPanel>

            </a4j:outputPanel>

        </a4j:outputPanel>
        <h:panelGroup styleClass="buttons" layout="block">
            <a4j:commandButton styleClass="button"
                               value="#{resources.confirmLabel}"
                               action="#{newFriendBean.confirmRequest}"
                               reRender="requestRichPanelForm">
                <f:setPropertyActionListener value="#{request.id}"
                                             target="#{newFriendBean.informationIdForProccess}"/>
            </a4j:commandButton>
            <a4j:commandButton styleClass="button"
                               value="#{resources.ignoreLabel}"
                               action="#{newFriendBean.rejectRequest}"
                               reRender="requestRichPanelForm">
                <f:setPropertyActionListener value="#{request.id}"
                                             target="#{newFriendBean.informationIdForProccess}"/>
            </a4j:commandButton>


        </h:panelGroup>
    </rich:panel>

</ui:component>


</html>


